#include "CubeDesigner.h"


#ifndef IMAGEHANDLER_H
#define IMAGEHANDLER_H
#include "ImageHandler.h"
#endif

#ifndef ROBOT_H
#define ROBOT_H

#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <windows.h>
#include <GL/glut.h>
#endif

class Robot
{
    public:
        Robot();
        virtual ~Robot();
        void drawRobot();

		CubeDesigner cubeDesigner;

		tpImage* face;
		GLuint texHandle;

        float degLegRight;
        float degKneeRight;
        float degOpenLegRight;
        float degArmRight;
        float degElbowRight;
        float degOpenArmRight;

        float degLegLeft;
        float degKneeLeft;
        float degOpenLegLeft;
        float degArmLeft;
        float degElbowLeft;
        float degOpenArmLeft;
        float degTrunk;
        float degNeck;

        float robotProportion;

		void reset();


    protected:
        void rescale();
        void rotateTrunk();
        void drawHead();
        void drawArm(int arm);
        void drawLeg(int leg);
        void drawTrunk();
    private:
};

#endif // ROBOT_H
